#ifndef FORMATE_UTIL_H_  
#define FORMATE_UTIL_H_

#include <assert.h>
#include <math.h>
#include <iostream>
#include <functional> 
#include <algorithm>
#include <string>
#include <vector>

class FormatUtil
{
public:
	static int hexToDecimal(const char* szHex, int len);

	static std::string& ReplaceAll(std::string& str, const std::string& old_value, const std::string& new_value);

	static std::string& LeftTrim(std::string &str);

	static std::string& RightTrim(std::string &str);

	static std::string& Trim(std::string &st);
private:
	static int hexCharValue(char c);
};

#endif //FORMATE_UTIL_H_